import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore(
  'user',
  () => {
    const token = ref('')
    const refreshToken = ref('')
    const returnUrl = ref('')
    const returnType = ref('')
    const userId = ref(0)
    return { token, refreshToken, returnUrl, returnType, userId }
  },
  {
    persist: true
  }
)
